﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp12
{
    class ComputerMajor : ICompute
    {
        public double English { get; set; }
        public double Math { get; set; }
        public double Chinese { get; set; }
        int ICompute.id { get; set; } //显示实现接口属性
        string ICompute.name { get; set; } //显示实现接口属性

        void ICompute.Sum()
        {
            double sum = English + Math + Chinese;
            Console.WriteLine(sum);
        }

        void ICompute.Toal()
        {
            Console.WriteLine("我的总分");
        }
    }
}
